const path=require("path");
const HtmlWebpackPlugin=rennnquire("html-webpack-plugin");


module.exports={
    entry:"./str/index.js",
    output:{
        filename:"main.js",
        path:path.resolve(__dirname,"./dist")
    },
    plugins: [
        // new webpack.optimize.UglifyJsPlugin(),
        new HtmlWebpackPlugin({
            template: './src/index.html'
        })
      ],
      mode:"development",
      module:{
          rules:{
              test:/\.css$/,
              use:["style-loader",'css-loader']
          },
          
      }
      
}